package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_address")
public class UserAddress {
    @TableId(value = "user_address_id",type = IdType.AUTO)
    private Integer userAddressId;
    @ApiModelProperty(value = "用户ID",required = true)
    private String openId;
    @ApiModelProperty(value = "省份",required = true)
    private String province;
    @ApiModelProperty(value = "城市",required = true)
    private String city;
    @ApiModelProperty(value = "县区",required = true)
    private String county;
    @ApiModelProperty(value = "详细地址",required = true)
    private String detailAddress;
    @ApiModelProperty(value = "收货人手机号",required = true)
    private String recipientPhone;
    @ApiModelProperty(value = "收货人名称",required = true)
    private String recipientName;
}